package com.market.goods.dao.mongo;

import lombok.Data;
import lombok.ToString;
import org.springframework.data.mongodb.core.mapping.Document;

import javax.persistence.Column;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 编码字典表
 */
@ToString
@Data
@Document(collection="baseDic")
public class BaseDic implements Serializable {
    /**
     * 主键Id
     */
    @Column(name = "dic_code")
    private String dicCode;

    /**
     * 编码名称
     */
    @Column(name = "dic_name")
    private String dicName;

    /**
     * 父编号
     */
    @Column(name = "parent_code")
    private String parentCode;

    /**
     * 创建日期
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 修改日期
     */
    @Column(name = "operate_time")
    private Date operateTime;
}